//
//  SEAPI_play/h
//  SleepingElf
//
//  Created by karong on 2023/6/8_play/
//

#ifndef SEAPI_h
#define SEAPI_h
#ifdef DEBUG_ON
    #define API_HOST                        @"http://www.sleep-tool.com/"
#else
#ifdef PROD_ON
    #define API_HOST                        @"http://www.sleep-tool.com/"
#else
    #define API_HOST                        @"http://www.sleep-tool.com/"
#endif
#endif

#define FULL_ADDRESS(address)           [NSString stringWithFormat:@"%@%@", API_HOST, address]
///用戶協議
#define API_AGREEMENT_USER              @"userAgreement"
///隱私協議
#define API_AGREEMENT_PRIVACY           @"privacy"
///消息
#define API_FEEDBACK_LIST           @"api/feedback/list"

///上傳圖片
#define API_UPLOAD_IMAGE                @"api/user/upload_avatar"

///校验服务端时间戳
#define API_SERVER_TIMESTAMP            @"api/index/public_timestamp"

///banner
#define API_HOME_BANNER                 @"api/index/banner"
///tab
#define API_HOME_TAB                    @"api/index/tab"
///用顶级分类查询分类列表
#define API_HOME_CLASSIFY               @"api/index/classify"
///用分类查询同级分类列表
#define API_HOME_PLAYCLASSLIST          @"api/sleepInfo/playClasslist"
///分类下的音频列表
#define API_HOME_CLASSIFY_LIST          @"api/sleepInfo/index"
///精选白噪音
#define API_HOME_FEATURED               @"api/sleepInfo/featured"
///催眠曲
#define API_HOME_LULLABY                @"api/sleepInfo/lullaby"
///白噪音更多
#define API_HOME_EXCLUSIVE              @"api/sleepInfo/exclusive_white_noise"
///助眠放松
#define API_HOME_SLEEP_RELAX            @"api/sleepInfo/sleep_and_relax"

///提示和一起听
#define API_SLEEP_LISTEN_LIST           @"api/sleepInfo/tipAndListenList"

///收藏
#define API_MUSIC_COLLECT               @"api/sleepCollect/create"
///取消收藏
#define API_MUSIC_COLLECT_DELETE        @"api/sleepCollect/delete"

///收藏列表
#define API_MUSIC_COLLECT_LIST          @"api/sleepCollect/index"

///创建专属音频
#define API_CUSTOM_MUSIC_COLLECT        @"api/sleepAudio/create"
///删除专属音频
#define API_CUSTOM_MUSIC_COLLECT_DELETE @"api/sleepAudio/delete"

///专属白噪音列表
#define API_CUSTOM_MUSIC_LIST           @"api/sleepAudio/index"
///专属白噪音详情
#define API_CUSTOM_MUSIC_DETAIL         @"api/sleepAudio/show"

///登录
#define API_USER_LOGIN                  @"api/login/oauth"
///个人信息
#define API_USER_INFO                   @"api/user/center"
#define API_USER_EDIT                   @"api/user/update_personal_data"
#define API_USER_DEL                    @"api/user/user_write_off"

///意见反馈
#define API_FEEDBACK_SUBMIT             @"api/feedback/index"
#endif /* SEAPI_h */
